/********************************************************************************
 *      Copyright:  (C) 2022 Zhang Changxing<ZhangChangxingVIP@163.com>
 *                  All rights reserved.
 *
 *       Filename:  ds18b20.h
 *    Description:  This head file 
 *
 *        Version:  1.0.0(04/13/2022)
 *         Author:  Zhang Changxing <ZhangChangxingVIP@163.com>
 *      ChangeLog:  1, Release initial version on "04/13/2022 01:22:41 AM"
 *                 
 ********************************************************************************/

#ifndef  _DS18B20_H_
#define  _DS18B20_H_

#include "main.h"

/*
 *   description:   Read the temperature on ds18b20
 *          args:   $temp:    Store the temperature obtained
 *  return value:   <0: failure,    =0:ok 
 */
int temperature (float *temp);

#endif   /* ----- #ifndef _DS18B20_H_  ----- */


